<template>
	<view class="body">
		<view class="list" style="padding: 20rpx;">
			<view style="color: #000;font-size: 30rpx;">{{detail.n_title}}</view>
			<view style="color: #999;font-size: 26rpx;margin-top: 10rpx;">{{detail.n_time}}</view>
		</view>
		<view class="content">
			<!-- <view v-html="detail.n_content"></view> -->
			<jyf-parser :html="detail.n_content"  class="jui_pad_2432 "></jyf-parser>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				detail:'',
				FromToken:''
			}
		},
		onShow() {
			this.getFromToken()
		},
		onLoad(opt) {
			this.id = opt.id;
			this.gonggao()
		},
		methods: {
			getFromToken() {
				this.$api.getFromToken({data:1}).then(res => {
					if (res.code == 1) {
						this.FromToken = res.FromToken
						
					}
				});
			},
			gonggao(){
				let data = {
					id:this.id
				}
				this.$api.getNoticeDetail(data).then(res => {
					if (res.code == 1) {
						this.detail = res.data;
					}
				});
			}
		}
	}
</script>

<style>
	page {
		background-color: #FFFFFF
	}
	page,.body{
			background: #fff;
			width: 100%;
		}
		.content{padding:30upx;color: #333;font-size: 30upx;border-top: 2upx solid #f3f3f3;}
	</style>
</style>
